package com.aegean.MonitorExamSYS.center.tools;

import java.text.SimpleDateFormat;

public class TypeConvert {
	public static String NumToName(int num) {
		if (num == 0) {
			return "封锁";
		} else {
			return "激活";
		}
	}

	public static int NameToNum(String bigType) {
		if (bigType.equals("封锁")) {
			return 0;
		} else {
			return 1;
		}
	}
	public static String toDateString(java.util.Date date) {
		SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");
		String time = df.format(date);
		return time;
	}
}
